Optimal. Leaf size=39 \[ \frac {x^n (a+b x)^{-n} \left (1+\frac {b x}{a}\right )^n \, _2F_1\left (n,n;1+n;-\frac {b x}{a}\right )}{n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 39, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {68, 66}
\begin {gather*} \frac {x^n (a+b x)^{-n} \left (\frac {b x}{a}+1\right )^n \, _2F_1\left (n,n;n+1;-\frac {b x}{a}\right )}{n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 66
Rule 68
Rubi steps
\begin {align*} \int x^{-1+n} (a+b x)^{-n} \, dx &=\left ((a+b x)^{-n} \left (1+\frac {b x}{a}\right )^n\right ) \int x^{-1+n} \left (1+\frac {b x}{a}\right )^{-n} \, dx\\ &=\frac {x^n (a+b x)^{-n} \left (1+\frac {b x}{a}\right )^n \, _2F_1\left (n,n;1+n;-\frac {b x}{a}\right )}{n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 39, normalized size = 1.00 \begin {gather*} \frac {x^n (a+b x)^{-n} \left (1+\frac {b x}{a}\right )^n \, _2F_1\left (n,n;1+n;-\frac {b x}{a}\right )}{n} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.05, size = 0, normalized size = 0.00 \[\int x^{-1+n} \left (b x +a \right )^{-n}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [C] Result contains complex when optimal does not.
time = 185.55, size = 27, normalized size = 0.69 \begin {gather*} \frac {a^{- n} x^{n} \Gamma \left (n\right ) {{}_{2}F_{1}\left (\begin {matrix} n, n \\ n + 1 \end {matrix}\middle | {\frac {b x e^{i \pi }}{a}} \right )}}{\Gamma \left (n + 1\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.03 \begin {gather*} \int \frac {x^{n-1}}{{\left (a+b\,x\right )}^n} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________